/* 自适应表格样式 */
.adaptive-table-container {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #f5f7fa;
  /* padding: 16px; */
  box-sizing: border-box;
  overflow: hidden; /* 防止整个容器滚动 */
}

.adaptive-table-search {
  flex-shrink: 0;
  margin-bottom: 16px;
  background: white;
  padding: 16px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.adaptive-table-table {
  flex: 1;
  min-height: 0;
  background: white;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.adaptive-table-pagination {
  flex-shrink: 0;
  margin-top: 16px;
  background: white;
  padding: 12px 16px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: flex-end;
}

/* 确保表格容器内的表格能正确占用空间和滚动 */
.adaptive-table-table .el-table {
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
}

.adaptive-table-table .el-table .el-table__header-wrapper {
  flex-shrink: 0;
  overflow: visible;
}

.adaptive-table-table .el-table .el-table__body-wrapper {
  flex: 1;
  min-height: 0;
  overflow-y: auto !important;
  overflow-x: auto !important;
  max-height: none !important;
}
